﻿<template>
  <div class="order-card-source">
    <div class="source-item">
      <span class="label">订单归属：</span>
      <span class="value">{{ orderData.orderOwnership || "平台订单" }}</span>
    </div>
    <div class="source-item">
      <span class="label">订单来源：</span>
      <span class="value">{{ orderData.orderSource || "平台订单" }}</span>
    </div>
    <el-divider direction="vertical" />
    <div class="source-item">
      <span class="label">渠道分组：</span>
      <span class="value">{{ orderData.channelGroup || "平台" }}</span>
    </div>

    <div class="source-item">
      <span class="label">渠道来源：</span>
      <span class="value">{{ orderData.channelSource || "青云租" }}</span>
    </div>
    <el-divider direction="vertical" />
    <div class="source-item">
      <span class="label">下单平台：</span>
      <span class="value">{{ orderData.orderPlatform || "微信" }}</span>
    </div>
    <el-divider direction="vertical" />
    <div class="source-item">
      <span class="label">注册来源：</span>
      <span class="value">{{ orderData.registrationSource || "平台" }}</span>
    </div>
    <el-divider direction="vertical" />
    <div class="source-item">
      <span class="label">推广渠道：</span>
      <span class="value">{{ orderData.promotionChannel || "平台" }}</span>
    </div>
    <div class="source-item">
      <span class="label">芝麻渠道：</span>
      <span class="value">{{ orderData.zhimaChannel || "芝麻租赁" }}</span>
    </div>
  </div>
</template>

<script setup>
  const props = defineProps({
    orderData: {
      type: Object,
      default: () => ({}),
    },
  });
</script>

<style lang="scss" scoped>
  :deep(.el-divider--vertical) {
    margin: 0 !important;
  }
  .order-card-source {
    margin: 0 16px;
    border-top: 1px dashed var(--cb1);
    border-bottom: 1px dashed var(--cb1);
    padding: 16px 0;
    display: flex;
    gap: 16px;
    align-items: center;
    .source-item {
      display: flex;
      align-items: center;
      font-size: 12px;
      .label {
        color: var(--ct3);
      }
      .value {
        color: var(--ct1);
      }
    }
  }
</style>

<!-- 
<div class="order-attribution">
      <div class="attribution-item">
        <span class="label">订单归属：</span>
        <span class="value">{{ orderData.orderOwnership || "平台订单" }}</span>
      </div>

      <div class="attribution-item">
        <span class="label">订单来源：</span>
        <span class="value">{{ orderData.orderSource || "平台订单" }}</span>
      </div>

      <div class="attribution-item">
        <span class="label">渠道分组：</span>
        <span class="value">{{ orderData.channelGroup || "平台" }}</span>
      </div>

      <div class="attribution-item">
        <span class="label">渠道来源：</span>
        <span class="value">{{ orderData.channelSource || "青云租" }}</span>
      </div>

      <div class="attribution-item">
        <span class="label">下单平台：</span>
        <span class="value">{{ orderData.orderPlatform || "微信" }}</span>
      </div>

      <div class="attribution-item">
        <span class="label">注册来源：</span>
        <span class="value">{{ orderData.registrationSource || "平台" }}</span>
      </div>

      <div class="attribution-item">
        <span class="label">推广渠道：</span>
        <span class="value">{{ orderData.promotionChannel || "平台" }}</span>
      </div>

      <div class="attribution-item">
        <span class="label">芝麻渠道：</span>
        <span class="value">{{ orderData.zhimaChannel || "芝麻租赁" }}</span>
      </div>
    </div> 
    -->
